<?php
namespace app\user\controller;

use app\common\controller\Front;

class Order extends Front
{
    protected function initialize()
    {
        $this->auth['check'] = true;
        
        $this->auth['cancel_limit'] = '*';
        
        parent::initialize(); 
    }

    public function index()
    {
        $list = model('common/Pay','loglic')->select([
            'limit' => 100,
            'where' => [
                ['pay_user_id','eq',$this->user['user_id']],
            ],
            'order' => [
                'pay_id' => 'desc',
            ],
        ]);
        $this->assign('list',$list);

        $this->assign($this->site);

        return $this->fetch(); 
    }
}